package com.blog.attach.mapper;

import com.blog.attach.entity.UserReplay;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.attach.entity.VO.UserReplayVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 苏离
 * @since 2022-01-18
 */
public interface UserReplayMapper extends BaseMapper<UserReplay> {
    List<UserReplayVO> getReplaysByParentId(@Param("ParentId") Integer parentId,
                                            @Param("pageNo") Integer pageNo,
                                            @Param("limit") Integer limit);
    Integer getReplayCount(Integer parentId);
}
